package com.ctyon.watchmanager.bean;

import com.ctyon.common.util.DataUtil;

/**
 * CreateDate：19-7-20 on 上午10:26
 * Describe:
 * Coder: lee
 */
public class DisturbBean {

    private String disturb0;
    private String disturb1;
    private String disturb2;

    public String getDisturb0() {
        return disturb0;
    }

    public void setDisturb0(String disturb0) {
        this.disturb0 = disturb0;
    }

    public String getDisturb1() {
        return disturb1;
    }

    public void setDisturb1(String disturb1) {
        this.disturb1 = disturb1;
    }

    public String getDisturb2() {
        return disturb2;
    }

    public void setDisturb2(String disturb2) {
        this.disturb2 = disturb2;
    }

    public DisturbBean setDisturb(String[] disturb){
        this.disturb0 = (DataUtil.isEmptyAnd(disturb[0]) || disturb[0].equals("00*00-00*00") || disturb[0].equals("null"))?"":disturb[0].replace("*", ":");
        this.disturb1 = (DataUtil.isEmptyAnd(disturb[1]) || disturb[1].equals("00*00-00*00") || disturb[1].equals("null"))?"":disturb[1].replace("*", ":");
        this.disturb2 = (DataUtil.isEmptyAnd(disturb[2]) || disturb[2].equals("00*00-00*00") || disturb[2].equals("null"))?"":disturb[2].replace("*", ":");
        return this;
    }

}
